<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/jquery-ui.js"></script>
<link rel="stylesheet" href="<?= $this->config->base_url(); ?>assets/css/jquery-ui.css" type="text/css" charset="utf-8" />

<div class="row-fluid">
<h3>Assigned Engineer</h3>
<hr>
<br>
<br>

<div class="span4"> </div>
<div class="span6">
<form method="post" action="<?php echo site_url('/admin/order/engineer_assign')?>">
<label ><b>Case No.</b></label>
<input type="hidden" name="case_id" value="<?php echo $order->case_id; ?>"/>
<input type="text" readonly="readonly" class="span3" value="<?php echo $order->case_no; ?>" name="case_no"/>
<label class="col-lg-2 control-label"><b>Order No.</b></label>
<input type="text" readonly="readonly"name="order_no"value="<?php echo $order->order_no;  ?>" />
<label class="col-lg-2 control-label"><b>Assigned Date.</b></label>

            <input data-date-format="yyyy/mm/dd" type="text" class="date1" id="datepicker1"name="assigned_date"/>
            <span class="add-on">
                <i class="icon-calendar"> </i>
            </span>
  
<label for="inputEmail" class="col-lg-2 control-label"><b>Expected Date</b></label>

            <input data-date-format="yyyy/mm/dd" type="text" class="date1" id="datepicker2"name="expected_date" />
            <span class="add-on">
                <i class="icon-calendar"> </i>
            </span>
    
<label for="inputEmail" class="col-lg-2 control-label"><b>Select Available Engineer</b></label>
<?php 
	 	$bl[0] = "Select Engineer";
	   		foreach($engineer as $engineers){
           
				$bl[$engineers->id] = $engineers->username;
			}
			echo form_dropdown('id_engineer', $bl, '', 'class="chzn-select span12" data-placeholder="Choose a Supplier" style="width:220px;"');  ?>
<br>
<br>
<p align="center">
<input type="submit" name="submit" value="Assigned" class="btn btn-info"/>
</form>
</p>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
	$('.date1').datepicker({ dateFormat: 'yy-mm-dd' });

	
})
</script>